package com.mcm.lstudy.dao;

import java.util.List;

import com.mcm.lstudy.entity.Comment;
import com.mcm.lstudy.tools.PageData;

public interface CommentDao {

	// 添加评论
	public boolean AddComment(Comment comment);

	// 根据id删除评论
	public boolean deleteComment(Integer cmid);

	// 修改评论
	public boolean updateComment(Comment comment);

	// 关键字查询
	public List<Comment> getComments(String keywords);

	// id查询
	public Comment getCommentById(int cmid);

	// 类型查询
	public Comment getCommentByCmrp(int cmrp);

	// 分页查询
	public PageData<Comment> getCommentByPage(int page, int pageSize, String keywords);
}
